package com.atguigu.day11.ploy.p1;
public class Animal {
    public void eat(){
        System.out.println("动物吃饭");
    }
    public void sleep(){
        System.out.println("动物睡觉");
    }
}
class Dog extends Animal{
    @Override
    public void eat() {
        System.out.println("小狗爱吃骨头");
    }
    public void lookHome(){
        System.out.println("小狗看家");
    }
}
class Cat extends Animal{
    @Override
    public void eat() {
        System.out.println("小猫爱吃鱼");
    }
    public void  catchMouse(){
        System.out.println("小猫抓老鼠");
    }
}
class Monkey extends Animal{
    @Override
    public void eat() {
        System.out.println("猴子爱吃桃...");
    }
}
class Rabbit extends Animal{
    @Override
    public void eat() {
        System.out.println("兔子爱吃胡萝卜....");
    }
}
